#include <iostream>
#include <vector>
#include <stdlib.h>

using namespace::std;

int main ()
{
    vector<int> v;
    std::cout<<"v.sizeis"<<v.size()<<"v.capacity is"<<v.capacity()<<std::endl;
    v.reserve(10);
    std::cout<<"v.sizeis"<<v.size()<<"v.capacity is"<<v.capacity()<<std::endl;
    v.resize(10);

    for (int i=0;i<6;i++)
    {
        v.push_back(i);
    }
    std::cout<<"v.sizeis"<<v.size()<<"v.capacity is"<<v.capacity()<<std::endl;

    for(int i=0;i<(v.size());i++)
    {
        cout<<v[i]<<"  ";
    }
    cout<<endl;

    v.insert(v.begin(),10,5);
    for(int i=0;(i<v.size());i++)
    {
        cout<<v[i]<<"  ";
    }
    cout<<endl;
    std::cout<<"v.sizeis"<<v.size()<<"v.capacity is"<<v.capacity()<<std::endl;

    v.erase(v.begin()+2);
     for(int i=0;i<(v.size());i++)
    {
        cout<<v[i]<<"  ";
    }
    std::cout<<"v.sizeis"<<v.size()<<"v.capacity is"<<v.capacity()<<std::endl;

    system("pause");
    return 0;
}